<?php
namespace app\app\controller\v2;
use app\app\Appbase;

class GoodsReply extends Appbase 
{
	
	/**
	*获取评论列表
	* /app/v2/goods_reply/getReplyList
	* 需要登录 
	* @is_need_login true
	*@method all 
	*/
	public function getReplyList($pageIndex=1,$pageSize=20){
		try {
			$result = model('GoodsReply')->getList($pageIndex,$pageSize);
			return $this->ReSucess($result);	
		} catch (\Exception $e) {
			return $this->ReError($e->getMessage());	
		}
	}
	
	/**
	*删除
	* /app/v2/goods_Reply/del
	* 需要登录 
	* @is_need_login true
	*@method post 
	*/
	public function del($id){
		try {
			$result = model('GoodsReply')->remove($id);
			return $this->ReSucess();	
		} catch (\Exception $e) {
			return $this->ReError($e->getMessage());	
		}
	}
	
}



